• Language

    C

  • Description

    It converts American dollars to nairas

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
#include <stdlib.h>

int main (void)
{
    float american_dollars, nairas;
    printf ("Enter the value of nairas: ");
    scanf ("%f", &nairas);
    (void) getchar ();
    american_dollars=nairas/361000;
    printf ("Value of american dollars: %g\n", american_dollars);
    putchar ('\n');
    system ("pause");
    return EXIT_SUCCESS;
}