Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- /*
- * File: main.c
- * Author: alp
- *
- * Created on May 15, 2019, 3:33 PM
- */
- #include <stdio.h>
- #include <stdlib.h>
- void task1(){
- printf("Hello EDAII!");
- }
- void task2(){
- int a;
- int b;
- int sum;
- printf("Enter number 1:\n");
- scanf("%d", &a);
- printf("You entered %d\n", a);
- printf("Enter number 2:\n");
- scanf("%d", &b);
- printf("You entered %d\n", b);
- sum = a + b;
- printf("The sum is %d", sum);
- }
- void task3(){
- //...
- }
- void task4(){
- //...
- }
- /*
- *
- */
- int main(int argc, char** argv) {
- //task1();
- task2();
- //task3();
- //task4();
- return (EXIT_SUCCESS);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement