Search
 
SCRIPT & CODE EXAMPLE
 

C

c syntax

#include<stdio.h>
#include<stdlib.h>

int main()
{
    int a, b, c, d, e;

    printf("Welcome to the calculator!
");

    printf("print the value of a here:-  ");
    scanf("%d", &a);
    printf("
print the value of b here:-  ");
    scanf("%d", &b);
    printf("
print the value of c here:-  ");
    scanf("%d", &c);

    d = a*b*c;
    e = a+b+c;

    printf("a*b*c = %d
", d);
    printf("a+b+c = %d", e);

    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: how make a character in c scanf 
C :: downgrade chrome to previous stable version in linux 
C :: strong number in c 
C :: goto statement in c 
C :: c program to print the multiplication table 
C :: c printing char pointer 
C :: text berjalan html 
C :: remove axis numpy array 
C :: c in array 
C :: format specifiers in c 
C :: get float in c 
C :: number of hours, minutes, and seconds given the number of seconds. 
C :: to run Blazor project using CLI 
C :: responsive form bootstrap 4 
C :: c loop 
C :: c check if character is a space 
C :: how to get the lowest number on a array in c 
C :: continue statement in c 
C :: c double 
C :: Float and Double Input/Output 
C :: how to insert elements in and array and print it in c 
C :: yum install supervisor amazon linux 
C :: enum case statement in c 
C :: atoi string to int 
C :: les fichiers en c 
C :: hostbuilder add environment variables 
C :: Command to compile and execute a c file program consecutively 
C :: router solicitation and advertisement magic is used by 
C :: can torch light bring change in chemical reaction 
C :: binary operations on structs C 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =